Skip to content

Conversation

@cedric-anne
Copy link
Member

Checklist before requesting a review

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.
  • This change requires a documentation update.

Description

It fixes #21953

@cedric-anne cedric-anne force-pushed the 11.0/fix-my-group-devices branch from c62cae1 to 0948546 Compare December 1, 2025 16:09
@cedric-anne cedric-anne marked this pull request as ready for review December 1, 2025 16:09
return [
[\CartridgeItem::class], [Computer::class], [\ConsumableItem::class], [Monitor::class], [\NetworkEquipment::class],
[\Peripheral::class], [\Phone::class], [\Printer::class], [\Software::class],
[\Peripheral::class], [\Phone::class], [Printer::class], [\Software::class],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not import every class?

);

// Create test equipment owned by user/group using GLPI's createItem helper
$computer_1 = $this->createItem('Computer', [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$computer_1 = $this->createItem('Computer', [
$computer_1 = $this->createItem(Computer::class, [

(for all hardcoded itemtypes)

@cedric-anne cedric-anne requested a review from trasher December 1, 2025 16:23
@cedric-anne cedric-anne merged commit 0788d7c into glpi-project:11.0/bugfixes Dec 2, 2025
7 of 8 checks passed
@cedric-anne cedric-anne deleted the 11.0/fix-my-group-devices branch December 2, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GLPI 11 - Error when assigning items to a ticket

3 participants